package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.util.Date;
		
/**
 * 试卷定义表 exam_paperdef
 * 
 * @author lrw
 * @date 2020-04-11
 */
@Table("exam_paperdef")
public class Paperdef extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Name
		@Column("id")
	@Comment("试卷编号")
	@Prev(els=@EL("$me.timeid17()"))
	private String id;

			/** 试卷名称 */
	@Column("name")
	@Comment("试卷名称")
	private String name;

			/** 试卷类别 */
	@Column("kmid")
	@Comment("科目")
	private Integer kmid;

			/** 试卷状态0关闭1开放 */
	@Column("status")
	@Comment("试卷状态0关闭1开放")
	private boolean status;

			/** 开始时间 */
	@Column("starttime")
	@Comment("开始时间")
	private Date starttime;

			/** 结束时间 */
	@Column("endtime")
	@Comment("结束时间")
	private Date endtime;
	
	@Column("nojj")
	@Comment("禁止交卷时长")
	private Integer nojj;

			/** 考试时长 */
	@Column("duration")
	@Comment("考试时长")
	private Integer duration;

			/** 成绩公布时间 */
	@Column("showtime")
	@Comment("成绩公布时间")
	private Date showtime;

			/** 卷面总分 */
	@Column("total_score")
	@Comment("卷面总分")
	private Integer totalScore;

			/** 及格分数 */
	@Column("pass_score")
	@Comment("及格分数")
	private Integer passScore;

			/** 试题顺序0原始1随机 */
	@Column("question_order")
	@Comment("试题顺序0原始1随机")
	private boolean questionOrder;

			/** 试卷类型0固定1随机 */
	@Column("papertype")
	@Comment("试卷类型0固定1随机")
	private boolean papertype;

			/** 公布答案0否1是 */
	@Column("showkey")
	@Comment("公布答案0否1是")
	private boolean showkey;

			/** 显示形式0整卷1单题 */
	@Column("showmode")
	@Comment("显示形式0整卷1单题")
	private boolean showmode;

			/** 是否加密试卷0不加密1加密 */
	@Column("isenc")
	@Comment("是否加密试卷0不加密1加密")
	private boolean isenc;

			/** 试卷说明 */
	@Column("remark")
	@Comment("试卷说明")
	private String remark;

			/** 试卷模板 */
	@Column("data")
	@Comment("试卷模板")
	private String data;

	/** 任务类型1正式2模拟3自测 */
@Column("kstype")
@Comment("任务类型1正式2模拟3自测")
private Integer kstype;

	/** 是否限制考场 */
@Column("restip")
@Comment("是否限制考场")
private boolean restip;

	/** 是否统一交卷时间 */
@Column("resttime")
@Comment("是否统一交卷时间")
private boolean resttime;
	
	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}

	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}



	public Integer getKmid() {
		return kmid;
	}

	public void setKmid(Integer kmid) {
		this.kmid = kmid;
	}

	public void setStarttime(Date starttime) 
	{
		this.starttime = starttime;
	}

	public Date getStarttime() 
	{
		return starttime;
	}

	public void setEndtime(Date endtime) 
	{
		this.endtime = endtime;
	}

	public Date getEndtime() 
	{
		return endtime;
	}

	public void setDuration(Integer duration) 
	{
		this.duration = duration;
	}

	public Integer getDuration() 
	{
		return duration;
	}

	public Integer getNojj() {
		return nojj;
	}

	public void setNojj(Integer nojj) {
		this.nojj = nojj;
	}

	public void setShowtime(Date showtime) 
	{
		this.showtime = showtime;
	}

	public Date getShowtime() 
	{
		return showtime;
	}

	public void setTotalScore(Integer totalScore) 
	{
		this.totalScore = totalScore;
	}

	public Integer getTotalScore() 
	{
		return totalScore;
	}

	public void setPassScore(Integer passScore) 
	{
		this.passScore = passScore;
	}

	public Integer getPassScore() 
	{
		return passScore;
	}


	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

	public void setData(String data) 
	{
		this.data = data;
	}

	public String getData() 
	{
		return data;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public boolean isQuestionOrder() {
		return questionOrder;
	}

	public void setQuestionOrder(boolean questionOrder) {
		this.questionOrder = questionOrder;
	}

	public boolean isPapertype() {
		return papertype;
	}

	public void setPapertype(boolean papertype) {
		this.papertype = papertype;
	}

	public boolean isShowkey() {
		return showkey;
	}

	public void setShowkey(boolean showkey) {
		this.showkey = showkey;
	}

	public boolean isShowmode() {
		return showmode;
	}

	public void setShowmode(boolean showmode) {
		this.showmode = showmode;
	}

	public boolean isIsenc() {
		return isenc;
	}

	public void setIsenc(boolean isenc) {
		this.isenc = isenc;
	}

	public Integer getKstype() {
		return kstype;
	}

	public void setKstype(Integer kstype) {
		this.kstype = kstype;
	}

	public boolean isRestip() {
		return restip;
	}

	public void setRestip(boolean restip) {
		this.restip = restip;
	}

	public boolean isResttime() {
		return resttime;
	}

	public void setResttime(boolean resttime) {
		this.resttime = resttime;
	}



}
